package edu.its.dreamteam.web.components;

import org.apache.tapestry.MarkupWriter;
import org.apache.tapestry.annotations.Parameter;
import org.apache.tapestry.ioc.annotations.Inject;

import edu.its.dreamteam.daf.beans.Club;
import edu.its.dreamteam.daf.dao.IClubDao;

public class OutputClub {
	@Parameter
    private String idClub;
	@Inject
	private IClubDao clubDao;
	
	public IClubDao getClubDao() {
		return clubDao;
	}
	void beginRender(MarkupWriter writer)
    {
		Club club = (Club) getClubDao().findByPrimaryKey(idClub);
        writer.write(club.getClubName());
    }
}
